// 通过 webpack-merge 插件 合并配置文件
const merge = require('webpack-merge');
//获取 webpack.common.js 文件
const common = require('./webpack.common.js');
//获取 webpack.bootstrap.config 配置文件
const bootstrapEntryPoints = require('./webpack.bootstrap.config')


module.exports = merge(common, {
  //定义打包入口
  entry: {
    "app.bundle": './src/app.js',
    // "contact": './src/contact.js',
    "bootstrap": bootstrapEntryPoints.dev
  },
  //定义 source-map 工具
  devtool: 'inline-source-map',
  //定义 webpack 服务器
  devServer: {
    contentBase: './dist',
    inline: true,
    port: 9680,
    open: false,
  }
});